package cn.kimming.rpc.remoting.registry;

import cn.kimming.rpc.common.util.RpcProperty;

/**
 * 服务发现与注册相关常量
 */
public class RegistryConstants {
	public static final String BASE_PATH = "/my-rpc/registry";

	public static final String REGISTRY_URL_DEFAULT = "127.0.0.1:2181";
	public static final String REGISTRY_URL_SYS = "my.rpc.registry.url";
	public static final String REGISTRY_URL_ENV = "MY_RPC_REGISTRY_URL";
	public static final String REGISTRY_URL = RpcProperty.builder()
			.systemPropertyName(REGISTRY_URL_SYS)
			.systemEnvName(REGISTRY_URL_ENV)
			.defaultValue(REGISTRY_URL_DEFAULT)
			.get();

	public static final int DEFAULT_BASE_SLEEP_TIME_MS = 1000;
	public static final int DEFAULT_MAX_RETRIES = 3;

	public static void main(String[] args) {
	}
}
